package sudoku;

public class easy_qustion implements Sudoku_Question{
	
	private char[][][] easy_questn = {
		{	//q1
			{'4','6','3','2',' ','9','7','1','8'},//array[0][0-8]
			{'7',' ',' ',' ',' ',' ',' ',' ','5'},//array[1][0-8]
			{'8',' ','5','7',' ','3','6',' ','2'},//array[2][0-8]
			{'3',' ','8','6',' ','2','5',' ','1'},//array[3][0-8]
			{' ','7',' ',' ','4',' ',' ','6',' '},//array[4][0-8]
			{'6',' ','2','3',' ','1','4',' ','9'},//array[5][0-8]
			{'2',' ','7','9',' ','4','1',' ','6'},//array[6][0-8]
			{'9',' ',' ',' ',' ',' ',' ',' ','4'},//array[7][0-8]
			{'5','8','4','1',' ','6','3','9','7'} //array[8][0-8]
		},
				
		{	//q2
			{' ','5',' ','2','7','6',' ','3','9'},
			{' ','7','1',' ','4',' ',' ','2','5'},
			{'9',' ','2','1',' ','5',' ','4',' '},
			{' ',' ','3',' ',' ','1',' ',' ','4'},
			{'5',' ','6','4',' ','8','2',' ','1'},
			{'1',' ',' ','5',' ',' ','3',' ',' '},
			{' ','1',' ','7',' ','2','4',' ','8'},
			{'4','6',' ',' ','5',' ','7','1',' '},
			{'2','8',' ','6',' ','4','9','5',' '}
		},
		
		{	//q3
			{'4','2',' ','6','7',' ',' ','9','1'},
			{'7',' ','9','5','4','1',' ',' ','6'},
			{' ','5','6','9',' ',' ','7',' ',' '},
			{'3','7','5',' ',' ','6',' ','2',' '},
			{'2','6',' ',' ','9',' ',' ','5','3'},
			{' ','8',' ','2',' ',' ','6','1','7'},
			{' ',' ','3',' ',' ','7','9','6',' '},
			{'5',' ',' ','1','6','8','3',' ','2'},
			{'6','4',' ',' ','5','9',' ','7','8'}
		}
	};	


	private char[][][] easy_sol = {
		{	//q1
			{'4','6','3','2','5','9','7','1','8'},
			{'7','2','1','4','6','8','9','3','5'},
			{'8','9','5','7','1','3','6','4','2'},
			{'3','4','8','6','9','2','5','7','1'},
			{'1','7','9','8','4','5','2','6','3'},
			{'6','5','2','3','7','1','4','8','9'},
			{'2','3','7','9','8','4','1','5','6'},
			{'9','1','6','5','3','7','8','2','4'},
			{'5','8','4','1','2','6','3','9','7'}			
		},
		
		{	//q2
			{'8','5','4','2','7','6','1','3','9'},
			{'6','7','1','3','4','9','8','2','5'},
			{'9','3','2','1','8','5','6','4','7'},
			{'7','2','3','9','6','1','5','8','4'},
			{'5','9','6','4','3','8','2','7','1'},
			{'1','4','8','5','2','7','3','9','6'},
			{'3','1','5','7','9','2','4','6','8'},
			{'4','6','9','8','5','3','7','1','2'},
			{'2','8','7','6','1','4','9','5','3'}
		},
		
		{	//q3
			{'4','2','8','6','7','3','5','9','1'},
			{'7','3','9','5','4','1','2','8','6'},
			{'1','5','6','9','8','2','7','3','4'},
			{'3','7','5','8','1','6','4','2','9'},
			{'2','6','1','7','9','4','8','5','3'},
			{'9','8','4','2','3','5','6','1','7'},
			{'8','1','3','4','2','7','9','6','5'},
			{'5','9','7','1','6','8','3','4','2'},
			{'6','4','2','3','5','9','1','7','8'}
		}
	};

	public char[][][] get_questn()
	{	return easy_questn;	}
	
	public char[][][] get_sol()
	{	return easy_sol;	}

	public char[][] get_question(int qnum)
	{
		return easy_questn[qnum];
	}
	
	public char[][] get_solution(int qnum)
	{
		return easy_sol[qnum];
	}
	
}


